package com.rfid.project.model;

import javax.persistence.*;

import biz.core.KeyValue;
import biz.util.KeyValueUtil;
import biz.util.StringUtil;
import biz.core.IdEntity;

import java.util.Date;
import java.util.ArrayList;
import java.util.List;

@Entity
public class PersonProxy extends IdEntity {

	// 人员
	@ManyToOne
	@JoinColumn(name = "PersonID")
	private People person;

	// 代理人
	@ManyToOne
	@JoinColumn(name = "AgentID")
	private People agent;

	// 授权日期
	private Date dateCreated;

	// 开始日期
	private Date startDate;

	// 结束日期
	private Date endDate;

	// 收回日期
	private Date withdrawDate;

	// 状态
	private String status;

	public People getPerson() {
		return person;
	}

	public void setPerson(People person) {
		this.person = person;
	}

	public People getAgent() {
		return agent;
	}

	public void setAgent(People agent) {
		this.agent = agent;
	}

	public Date getDateCreated() {
		return dateCreated;
	}

	public void setDateCreated(Date dateCreated) {
		this.dateCreated = dateCreated;
	}

	public Date getStartDate() {
		return startDate;
	}

	public void setStartDate(Date startDate) {
		this.startDate = startDate;
	}

	public Date getEndDate() {
		return endDate;
	}

	public void setEndDate(Date endDate) {
		this.endDate = endDate;
	}

	public Date getWithdrawDate() {
		return withdrawDate;
	}

	public void setWithdrawDate(Date withdrawDate) {
		this.withdrawDate = withdrawDate;
	}

	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

}
